/* ==== BASE ==== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  padding: 0 5%; /* 🔥 evita que se pegue en celular */
  padding-top: 100px;
  color: #333;
  text-align: center;
  min-height: 100vh;
}

/* ==== HEADER ==== */
header {
  background: linear-gradient(90deg, #00bcd4, #0097a7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5%;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  flex-wrap: wrap;
}

/* LOGO */
.logo img {
  width: 70px;
  max-width: 100%;
}

/* NAV */
nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 5px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  transition: 0.3s;
}

nav a:hover {
  background-color: white;
  color: black;
}

/* ==== CONTENIDO ==== */
.contenido {
  width: 100%; /* 🔥 clave */
  max-width: 1000px;
  margin: auto;
  padding: 40px 0;
}

/* TITULOS */
.contenido h1 {
  font-size: 36px;
  color: #003366;
}

.contenido h2 {
  font-size: 20px;
  color: #555;
}

/* ==== CAJAS ==== */
.seccion-box {
  width: 100%; /* 🔥 mejor que 90% */
  max-width: 800px;
  margin: 20px auto;
  padding: 25px;
  border: 2px solid #003366;
  border-radius: 15px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: left;
}

/* LISTA */
.seccion-box ul {
  list-style: none;
  padding: 0;
}

.seccion-box li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.seccion-box li::before {
  content: "✔";
  color: #00bcd4;
  position: absolute;
  left: 0;
}

/* ==== TABLA RESPONSIVE 🔥 ==== */
table {
  width: 100%;
  max-width: 800px;
  margin: 25px auto;
  border-collapse: collapse;
  background-color: white;

  display: block; /* 🔥 clave */
  overflow-x: auto; /* 🔥 scroll en celular */
}

table th, table td {
  padding: 12px;
  border: 1px solid #ddd;
  white-space: nowrap; /* 🔥 evita que se rompa */
}

table th {
  background-color: #00bcd4;
  color: white;
}

/* ==== WHATSAPP ==== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  z-index: 1000;
}

/* ==== FOOTER ==== */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {

  body {
    padding-top: 140px;
  }

  header {
    flex-direction: column;
    text-align: center;
  }

  nav {
    width: 100%;
  }

  nav a {
    width: 100%;
    justify-content: center;
  }

}

@media (max-width: 480px) {

  .contenido h1 {
    font-size: 26px;
  }

  .contenido h2 {
    font-size: 16px;
  }

  table th, table td {
    font-size: 12px;
  }

}